/*
 * Copyright (c) 2019-2020, https://api.iot.10086.cn/(https://gitee.com/cmcc-iot-api/iot-card-open-application/).
 */
package cn.iot.card.open.ec.dto.groupinfo;

import java.io.Serializable;

/**
 * 新增或修改群组成员的请求体
 *
 * @author cmcc-iot-api
 * @date 20200117 10:04:43
 */
public class EcGroupMemberReqDTO implements Serializable {

    private static final long serialVersionUID = 6150339367672854873L;

    private String msisdn;

    private String groupId;

    private String accountId;

    private String operType;

    private String effectType;

    public String getMsisdn() {
        return msisdn;
    }

    public void setMsisdn(String msisdn) {
        this.msisdn = msisdn;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getOperType() {
        return operType;
    }

    public void setOperType(String operType) {
        this.operType = operType;
    }

    public String getEffectType() {
        return effectType;
    }

    public void setEffectType(String effectType) {
        this.effectType = effectType;
    }

    @Override
    public String toString() {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("所查询的物联卡号码:").append(msisdn).append(",");
        stringBuilder.append("群组ID:").append(groupId).append(",");
        if (operType.equals("0")) {
            stringBuilder.append("操作类型:").append("添加成员").append(",");
        } else if (operType.equals("1")){
            stringBuilder.append("操作类型:").append("删除成员").append(",");
        }
        if (effectType.equals("0")) {
            stringBuilder.append("生效时间:").append("次日生效");
        } else if (effectType.equals("1")) {
            stringBuilder.append("生效时间:").append("次月生效");
        }
        return stringBuilder.toString();
    }
}
